<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<title>UCARPP: includes/vehicleState.h Source File</title>

<link href="tabs.css" rel="stylesheet" type="text/css"/>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<script type="text/javascript">
  $(document).ready(initResizable);
</script>


</head>
<body>
<div id="top"><!-- do not remove this div! -->


<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  
  
  <td style="padding-left: 0.5em;">
   <div id="projectname">UCARPP
   &#160;<span id="projectnumber">1</span>
   </div>
   
  </td>
  
  
  
 </tr>
 </tbody>
</table>
</div>

<!-- Generated by Doxygen 1.7.6.1 -->
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Main&#160;Page</span></a></li>
      <li><a href="annotated.html"><span>Data&#160;Structures</span></a></li>
      <li class="current"><a href="files.html"><span>Files</span></a></li>
    </ul>
  </div>
  <div id="navrow2" class="tabs2">
    <ul class="tablist">
      <li><a href="files.html"><span>File&#160;List</span></a></li>
      <li><a href="globals.html"><span>Globals</span></a></li>
    </ul>
  </div>
</div>
<div id="side-nav" class="ui-resizable side-nav-resizable">
  <div id="nav-tree">
    <div id="nav-tree-contents">
    </div>
  </div>
  <div id="splitbar" style="-moz-user-select:none;" 
       class="ui-resizable-handle">
  </div>
</div>
<script type="text/javascript">
  initNavTree('vehicleState_8h.html','');
</script>
<div id="doc-content">
<div class="header">
  <div class="headertitle">
<div class="title">includes/vehicleState.h</div>  </div>
</div><!--header-->
<div class="contents">
<a href="vehicleState_8h.html">Go to the documentation of this file.</a><div class="fragment"><pre class="fragment"><a name="l00001"></a>00001 <span class="comment">/* vehicleState wrappa il Path di un veicolo con le informazioni associate al suo stato. */</span>
<a name="l00002"></a>00002 <span class="preprocessor">#ifndef VEHICLESTATE_H_</span>
<a name="l00003"></a>00003 <span class="preprocessor"></span><span class="preprocessor">#define VEHICLESTATE_H_</span>
<a name="l00004"></a>00004 <span class="preprocessor"></span>
<a name="l00005"></a>00005 <span class="preprocessor">#include &quot;<a class="code" href="vehiclePath_8h.html">vehiclePath.h</a>&quot;</span>
<a name="l00006"></a>00006 <span class="preprocessor">#include &quot;<a class="code" href="edgeGraph_8h.html">edgeGraph.h</a>&quot;</span>
<a name="l00007"></a>00007 
<a name="l00008"></a><a class="code" href="vehicleState_8h.html#a36d831eb19032107e7c611f5c4d4abcc">00008</a> <span class="keyword">typedef</span> <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> <a class="code" href="vehicleState_8h.html#a36d831eb19032107e7c611f5c4d4abcc">Natural</a>;
<a name="l00009"></a>00009 
<a name="l00010"></a><a class="code" href="structVehicleState.html">00010</a> <span class="keyword">typedef</span> <span class="keyword">struct </span><a class="code" href="structVehicleState.html">VehicleState</a> {
<a name="l00011"></a>00011 
<a name="l00012"></a>00012         <span class="comment">/* Percorso effettuato dal veicolo, in termini di attraversamenti ed eventuali servizi.</span>
<a name="l00013"></a>00013 <span class="comment">         * Attenzione, è un puntatore poichè rappresenta la testa di una lista! */</span>
<a name="l00014"></a><a class="code" href="structVehicleState.html#aee9372094c8c53b68e949346c9c88b12">00014</a>         <a class="code" href="structVehiclePath.html">PvehiclePath</a> <a class="code" href="structVehicleState.html#aee9372094c8c53b68e949346c9c88b12">pvp</a>;
<a name="l00017"></a><a class="code" href="structVehicleState.html#aac41a31dadf2646411c70c7d8d145f7f">00017</a>         <span class="keywordtype">int</span> <a class="code" href="structVehicleState.html#aac41a31dadf2646411c70c7d8d145f7f">tau</a>;
<a name="l00020"></a><a class="code" href="structVehicleState.html#a8a0e7178422fdab30ea42e413877a161">00020</a>         <span class="keywordtype">int</span> <a class="code" href="structVehicleState.html#a8a0e7178422fdab30ea42e413877a161">theta</a>;
<a name="l00023"></a><a class="code" href="structVehicleState.html#aec7964d840bc07251039d0826a52479e">00023</a>         <span class="keywordtype">int</span> <a class="code" href="structVehicleState.html#aec7964d840bc07251039d0826a52479e">jk</a>;
<a name="l00027"></a><a class="code" href="structVehicleState.html#a18847e5d2b4dd02e7df9a5b811f93d48">00027</a>         <span class="keywordtype">int</span> <a class="code" href="structVehicleState.html#a18847e5d2b4dd02e7df9a5b811f93d48">lEdges</a>;
<a name="l00029"></a><a class="code" href="structVehicleState.html#a6f87e69ba0e741a55540566be350a142">00029</a>         <span class="keywordtype">int</span> <a class="code" href="structVehicleState.html#a6f87e69ba0e741a55540566be350a142">lNodes</a>;
<a name="l00032"></a><a class="code" href="structVehicleState.html#a930fe56d15afd2babf0b09bed33ce1c6">00032</a>         <span class="keywordtype">int</span> <a class="code" href="structVehicleState.html#a930fe56d15afd2babf0b09bed33ce1c6">pathSize</a>;
<a name="l00033"></a>00033 
<a name="l00034"></a>00034 } <a class="code" href="vehicleState_8h.html#a203f414020a972d3d39169acfddf33bf">VehicleState</a>;
<a name="l00035"></a>00035 
<a name="l00036"></a><a class="code" href="vehicleState_8h.html#a22da3b197204806711b0084dc72e971a">00036</a> <span class="keyword">typedef</span> <a class="code" href="structVehicleState.html">VehicleState</a>* <a class="code" href="vehicleState_8h.html#a22da3b197204806711b0084dc72e971a">PvehicleState</a>;
<a name="l00037"></a>00037 
<a name="l00039"></a>00039 <a class="code" href="structVehicleState.html">PvehicleState</a> <a class="code" href="vehicleState_8h.html#aca817da33483cd8c23c0d84cd03f85d0">initVehicleState</a>();
<a name="l00040"></a>00040 
<a name="l00051"></a>00051 <span class="keywordtype">void</span> <a class="code" href="vehicleState_8h.html#a20c0345a9b84df53838a6786526657e4">freeVehicleState</a>(<a class="code" href="structVehicleState.html">PvehicleState</a> state);
<a name="l00052"></a>00052 
<a name="l00076"></a>00076 <span class="keywordtype">void</span> <a class="code" href="vehicleState_8h.html#a8718d420b464015d303b5e0fa725365b">addEdgeToVehicleState</a>(<a class="code" href="structEdgeID.html">PedgeID</a> pid, <a class="code" href="structEdgeGraph.html">PedgeGraph</a> pe, <a class="code" href="structVehicleState.html">PvehicleState</a> pvs, <span class="keywordtype">bool</span> g_ok);
<a name="l00077"></a>00077 
<a name="l00093"></a>00093 <span class="keywordtype">void</span> <a class="code" href="vehicleState_8h.html#a0bb50e9c63d5dcb3c4135e4cac88a053">addEdgeToVehicleStateForConnectionTest</a>(<a class="code" href="structEdgeID.html">PedgeID</a> pid, <a class="code" href="structVehicleState.html">PvehicleState</a> pvs);
<a name="l00094"></a>00094 
<a name="l00111"></a>00111 <span class="keywordtype">void</span> <a class="code" href="vehicleState_8h.html#a58e2983fff8204bd3b7c51eb30bed237">removeEdgeFromVehicleStateForConnectionTest</a>(<a class="code" href="structEdgeID.html">PedgeID</a> pid, <a class="code" href="structVehicleState.html">PvehicleState</a> pvs);
<a name="l00112"></a>00112 
<a name="l00137"></a>00137 <span class="keywordtype">int</span> <a class="code" href="vehicleState_8h.html#a70d99cdb5c9ce96f6e3dd30bdcfa0059">removeEdgeFromVehicleState</a>(<a class="code" href="structEdgeID.html">PedgeID</a> pid, <a class="code" href="structEdgeGraph.html">PedgeGraph</a> pe, <a class="code" href="structVehicleState.html">PvehicleState</a> pvs, <span class="keywordtype">bool</span> g_ok);
<a name="l00138"></a>00138 
<a name="l00185"></a>00185 <a class="code" href="structVehicleState.html">PvehicleState</a> <a class="code" href="vehicleState_8h.html#a66a064e16b3df8517027dedeebe61e15">cloneVehicleState</a>(<a class="code" href="structVehicleState.html">PvehicleState</a> pstate);
<a name="l00186"></a>00186 
<a name="l00197"></a>00197 <span class="keywordtype">bool</span> <a class="code" href="vehicleState_8h.html#a065926aecb74256d3e5711a16816dd19">isConnected</a>(<a class="code" href="structVehiclePath.html">PvehiclePath</a> p_path, <span class="keywordtype">int</span> lEdges);
<a name="l00198"></a>00198 
<a name="l00199"></a>00199 <span class="comment">/* \pre</span>
<a name="l00200"></a>00200 <span class="comment"> * \li i marked devono essere gia&#39; stati inizializzati</span>
<a name="l00201"></a>00201 <span class="comment"> *</span>
<a name="l00202"></a>00202 <span class="comment"> *@return il numero di archi attraversati (gli archi doppi ocntano 2)</span>
<a name="l00203"></a>00203 <span class="comment"> */</span>
<a name="l00204"></a>00204 <span class="keywordtype">int</span> <a class="code" href="vehicleState_8h.html#ac79b0ba984e6b07bbc8a4341290cb1cc">isConnectedRecursive</a>(<span class="keywordtype">int</span> node, <a class="code" href="structVehiclePath.html">PvehiclePath</a> p_path);
<a name="l00205"></a>00205 
<a name="l00218"></a>00218 <span class="keywordtype">void</span> <a class="code" href="vehicleState_8h.html#a54ba977067ef5442b67513b14ed63097">printVehicleState</a>(FILE* f, <a class="code" href="structVehicleState.html">PvehicleState</a> pvs, <span class="keywordtype">int</span> k);
<a name="l00219"></a>00219 
<a name="l00220"></a>00220 <span class="keywordtype">void</span> <a class="code" href="vehicleState_8h.html#a80cc2449e28835a0178eb7444e66b41c">printVehicleTQJScalars</a>(FILE* f, <a class="code" href="structVehicleState.html">PvehicleState</a> pvs);
<a name="l00221"></a>00221 <span class="keywordtype">void</span> <a class="code" href="vehicleState_8h.html#ae5d1574a6d1d2e014991924bd11ed727">printVehicleAllScalars</a>(FILE* f, <a class="code" href="structVehicleState.html">PvehicleState</a> pvs);
<a name="l00222"></a>00222 
<a name="l00223"></a>00223 <span class="preprocessor">#endif </span><span class="comment">/* VEHICLESTATE_H_ */</span>
</pre></div></div><!-- contents -->
</div>
  <div id="nav-path" class="navpath">
    <ul>
      <li class="navelem"><a class="el" href="vehicleState_8h.html">vehicleState.h</a>      </li>

    <li class="footer">Generated on Thu Jun 27 2013 11:34:36 for UCARPP by
    <a href="http://www.doxygen.org/index.html">
    <img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.7.6.1 </li>
   </ul>
 </div>


</body>
</html>
